<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://www.goodfox.com/jsp/tags/power" prefix="p"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%
request.setAttribute("locale",request.getLocale());
%>
<script type="text/javascript">
</script>
<div class="pageContent" style="border-left: 1px solid #B8D0D6;border-right: 1px solid #B8D0D6;">
	<div class="panelBar">
		<ul class="toolBar">
			<li><span><spring:message code="search.lnkGoAdd"/>人员</span></li>
			<li class="line">line</li>
		</ul>
	</div>
    <form id="accountAddForm" method="post" action="<c:url value="/account/accountAdd.shtml"/>" onsubmit="return validateCallback(this,navTabAjaxDone);">
        <table class="tableForm" cellpadding="0" cellspacing="1" width="100%" align="center">            
            <tbody>
                <tr>
                    <td>所属机构：</td>
                    <td>
                        <input type="hidden" name="act_add.orgId" id="act_add_orgId"  value="${org.orgId}">
                        <input class="required" type="text" name="act_add.orgName" id="act_add_orgName"  value="${org.orgName}">
                        <a class="btnLook" href="<c:url value="/account/goOrganizationLookup.shtml"/>" lookupGroup="act_add">选择所属机构</a>	
		                <a class="btnClean" href="javascript:;" onclick="$('#act_add_orgId').val('');$('#act_add_orgName').val('');">清空</a>
                    </td>
                    <td>角色：</td>
                    <td>
                     	<select class="required" id="act_add_roleId" name="act_add_roleId">
                        	<option value="">--请选择--</option>
							<c:forEach items="${roleList}" var="role" varStatus="index">
								<option value="${role.roleId}">${role.roleName}</option>
							</c:forEach>
						</select>
                        <input type="hidden" name="act_add_roleName" id="act_add_roleName">
                    </td>
                </tr>
                <tr>
                	<td>姓名：</td>
                    <td>
                        <input class="required" type="text" name="act_add_memName" id="act_add_memName" maxlength="10">
                    </td>
                    <td>性别：</td>
                    <td>
                        <select id="act_add_memSex" name="act_add_memSex">
                        	<option value="">--请选择--</option>
							<c:forEach items="${sexList}" var="atrSex" varStatus="index">
								<option value="${atrSex.atrValue}">${atrSex.atrName}</option>
							</c:forEach>
						</select>
                        <input type="hidden" name="act_add_sexName" id="act_add_sexName">
                    </td>
                </tr>
                <tr>
                    <td>移动电话：</td>
                    <td>
                        <input class="phone" type="text" name="act_add_memMobile" id="act_add_memMobile" maxlength="11">
                    </td>
                    <td>固定电话：</td>
                    <td>
                        <input class="phone" type="text" name="act_add_memPhone" id="act_add_memPhone"  maxlength="13">
                    </td>
                </tr>
                <tr>
                	<td>身份证：</td>
                    <td colspan="3">
                        <input type="text" name="act_add_memIdCard" id="act_add_memIdCard" maxlength="18">
                    </td>
                </tr>
                <tr>
                    <td>联系地址：</td>
                    <td colspan="3">
                        <input type="text" class="big-input" name="act_add_memAddress" id="act_add_memAddress" maxlength="40">
                    </td>
                </tr>
                <tr>
                    <td>联系邮编：</td>
                    <td>
                        <input type="text" name="act_add_memZip" id="act_add_memZip" maxlength="6">
                    </td>
                    <td>电子邮箱：</td>
                    <td>
                        <input type="text" class="email" name="act_add_memEmail" id="act_add_memEmail" maxlength="30">
                    </td>
                </tr>
                <tr>
                	<td>用户名：</td>
                    <td>
                        <input class="required" type="text" name="act_add_actName" id="act_add_actName" maxlength="8">
                    </td>
                	<td>密码</td>
                    <td>
                        <input class="text-input small-input" type="hidden" name="act_add_actPassword" id="act_add_actPassword" value="000000">
                        000000
                    </td>
                </tr>
        	</tbody>
        </table>
		<div class="panelBar">
            <div class="buttonActive">
        	<c:if test="${p:isPower('/account/accountAdd.shtml',sessionScope.loginAccount)}">
            <div class="buttonContent"><button type="submit"><spring:message code="add.btnAdd"/></button></div>
            </c:if>
            </div>
		</div>
    </form>
</div>